import { SHOW_NOTIFICATION, HIDE_NOTIFICATION } from '../reducers/notifications.js';

/**
 * 显示消息提示栏
 * @param  {Object}     props
 * @return {Object}
 */
export function showNotification(props) {
    return {
        type: SHOW_NOTIFICATION,
        payload: props
    };
}

/**
 * 关闭消息提示栏
 * @return {Object}
 */
export function hideNotification() {
    return {
        type: HIDE_NOTIFICATION
    };
}